# coding=utf-8
import re

# 定义正则表达式
pattern = "hello"
# 目标字符串
str = "Hello world, hello Python"
# search函数的使用
result = re.search(pattern, str)
print("search:", result)
r = re.match(pattern, str)
print("match:", r)
